import importAll from '@/utils/importAll'
import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'

Vue.use(Vuex)

const modules=importAll(require.context('./modules', false, /\.js$/),'.js')

const store = new Vuex.Store({
  modules,
  getters
})

export default store
